<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2023/4/14
 * Time: 13:02
 */

namespace app\index\model;


use think\Model;

class CrmOrderMoney extends Model
{

    public function add($OrderMoney,$order_id){
        $id = self::where('order_id',$order_id)->value('id');
        if(!empty($id)){
            return $id;
        }
        self::insertAll($OrderMoney);
    }
}